$(document).ready(function () {
    init()

    new Vue({
        el: '#app',
        data: {
            pageInfo: {list: {length: 0}}
        },
        methods: {
            getRepaymentCustom(pageNum) {
                axios.get('getRepaymentCustom', {
                    params: {
                        pageNum: pageNum
                    }
                }).then(
                    response => {
                        console.log(response.data)
                        this.pageInfo = response.data
                    },
                    error => {
                        console.log(error.message)
                    }
                )
            }
        },
        created() {
            this.getRepaymentCustom(1);
        }
    })

})

function init() {
    $("#header").load("jump?url=common/header", null, function () {
        $(".nav_navs").children().eq(5).children().attr("class", "on")
        $(".header_h1").css("margin-top", "0px")
        $(".header_weixin").css("margin-top", "0px")
        $(".header_weixin>img").mouseover(function(){
            $(".header_weixinBig").css('display','block');
        })
        $(".header_weixin>img").mouseout(function(){
            $(".header_weixinBig").css('display','none');
        })
    })

    $("#footer").load("jump?url=common/footer")
}
